# # 猜数字
# import random
#
# num = random.randint(1, 20)
# cnt = 5
# # print(f"num={num}")
#
# while cnt > 0:
#     cnt -= 1
#     guess = int(input("请输入你的猜测："))
#     if num == guess:
#         print("猜对了！")
#         break
#     elif num > guess:
#         print(f"猜小了，请再猜一次，剩余机会 {cnt} 次")
#     else:
#         print(f"猜大了，请再猜一次，剩余机会 {cnt} 次")

# # 1~100的和
# i = 1
# sum = 0
# while i <= 100:
#     sum += i
#     i += 1
#
# print(sum)

# 九九乘法表
for i in (1, 10):
    for j in (1, i + 1):
        # print("%d*%d=%d " % (i, j, i * j), end='')
        print(f"{i}*{j}={i*j:<2}\t", end='')
    print()
